<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jQuery/js/jquery-1.12.4.min.js"></script>
    <script>
        $(function(){
            var $p1=$('#p1')
            $p1.css({color:'red'})
        })
        $(function(){
            var $div1=$('.div1')
            alert($div1.length)
        })
    </script>
</head>
<body>
    <p id="p1" class="pcla">123</p>
    <div class="div1"></div>
</body>
</html>